import api from '@/api/index'

//手机验证码更改密码
export function resetPassword (phone_number, captcha, newPassword) {
    return api({
        url: '/login',
        method: 'post',
        data: { phone_number, captcha, newPassword }
    })
}
//获取验证码
export function getcaptcha (phone_number) {
    return api({
        url: 'user/getcaptcha/' + phone_number,
        method: 'post',
        data: {}
    })
}
